<%@ page language="java" contentType="text/html; charset=UTF-8" import="org.springframework.ui.ModelMap" import="java.util.*,com.device.operating.entity.*"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
<script type="text/javascript" src="../xasj/js/jquery-1.4.js"></script>
<script type="text/javascript" src="../xasj/js/framework.js"></script>
<link href="../xasj/css/import_basic.css" rel="stylesheet" type="text/css"/>
<link href="../xasj/css/skins/sky/import_skin.css" rel="stylesheet" type="text/css" themeColor="blue"/>
<script type="text/javascript">
function test(){
    var cb = document.getElementById('cbox');
    cb.checked;
}

function go(url) {
	window.location.href = url;
	}
function add(){
document.getElementById('fields').submit();	
}
</script>
</head>
<body>
<form id='fields' action="" method='post'>
<div class="box2" panelTitle="功能面板" roller="false">
		<table>
			<tr>
				<td>请选择资源类型：</td>
				<td>
            <%if(request.getAttribute("dlist")==null){}else{
            List<Devres> list=(List<Devres>)request.getAttribute("dlist");
					for(Devres d:list){
						if(request.getAttribute("lip")!=null&&d.getDevresId().equals(request.getAttribute("devresId"))){
						%><label><input type="radio" checked="checked" name="devresId" value="<%=d.getDevresId()%>"onclick="javascript:window.location.href='showipres?devresId=<%=d.getDevresId()%>'"/><%=d.getDevresname()%></label>
						<%
					}else{
				%>
     <label><input type="radio" name="devresId" value="<%=d.getDevresId()%>"onclick="javascript:window.location.href='showipres?devresId=<%=d.getDevresId()%>'"/><%=d.getDevresname()%></label>
            <%
					}}}
				%>
          </select></td></tr>
		</table>
</div>
<div id="scrollContent" class="box2" panelTitle="查询条件列表" roller="true">
		<table class="tableStyle">
			<tr>
			<th>大局向</th><th>起始地址</th><th>终止地址</th><th>总数</th><th>剩余</th>
			</tr>
			<tr>
			<%if(request.getAttribute("lip")==null){}else{
			List<Ipres> list=(List<Ipres>)request.getAttribute("lip");
			for(Ipres ipres:list){%>
			<td><%=ipres.getDjxname()%></td>
			<td><%=ipres.getIprangebegin()%></td>
			<td><%=ipres.getIprangeend()%></td>
			<td><%=ipres.getIpnum()%></td>
			<td><a href="showipdetail?ipresId=<%=ipres.getIpresId()%>"><%=ipres.getAvailipnum()%></a></td>						
			</tr>
			<%}}%>				
		</table>
</div>
<div class="box2" panelTitle="需要显示的字段" id="scrollContent">
<%					if(request.getAttribute("dvfield")==null){}else{
			        List<Fieldres> li=(List<Fieldres>)request.getAttribute("dvfield");
					for(Fieldres d:li){//需要显示的字段
									%>
						<td><input type="checkbox" name="fshow" <%if(d.isIfshow()==true){%>checked="checked"<%}%>  value=<%=d.getFieldId()%> /><%=d.getFieldname()%></td>
				<%
					}}
				%>
</div>
<div class="box2" >
<input type='submit' onclick="javascript:this.form.action='/xasj/showdevicelist';"value='提交' >
</form>
</div>
</body>
</html>